namespace Ds.DataBase.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class MyKaoBiao_BoHuiYiJian : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.MyKaoHeBiao_BoHuiYiJian",
                c => new
                    {
                        bhyjid = c.Int(nullable: false, identity: true),
                        usernanme = c.String(),
                        yijian = c.String(),
                        cjsj = c.DateTime(nullable: false),
                        ydsj = c.DateTime(),
                        yjzt = c.Int(nullable: false),
                        MyKaoHeBiao_mkhbid = c.Int(),
                    })
                .PrimaryKey(t => t.bhyjid)
                .ForeignKey("dbo.MyKaoHeBiaos", t => t.MyKaoHeBiao_mkhbid)
                .Index(t => t.MyKaoHeBiao_mkhbid);
            
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.MyKaoHeBiao_BoHuiYiJian", "MyKaoHeBiao_mkhbid", "dbo.MyKaoHeBiaos");
            DropIndex("dbo.MyKaoHeBiao_BoHuiYiJian", new[] { "MyKaoHeBiao_mkhbid" });
            DropTable("dbo.MyKaoHeBiao_BoHuiYiJian");
        }
    }
}
